<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                template="/templates/masterLayout.xhtml">

    <ui:define name="title">
        <h:outputText value="Student #{p:userPrincipal().name}"/>
    </ui:define>

    <ui:define name="leftMenu">
        <h:form>
            <p:panelMenu style="width:200px">
                <p:menuitem value="Edit profile" outcome="tcenter.xhtml"/>
                <p:submenu label="Student Profile">
                    <p:menuitem value="Menu1" outcome="tcenter.xhtml"/>
                    <p:menuitem value="Menu2" outcome="tcenter.xhtml"/>
                </p:submenu>
            </p:panelMenu>
        </h:form>
    </ui:define>

    <ui:define name="content">
        <h:form>
            <p:panel columns="2" rendered="#{studentBean.logged}" style="border: 0">
                <h2><p:outputLabel value="#{studentBean.firstName} #{studentBean.secondName}" /></h2>
                <h:panelGrid columns="2">
                    <p:outputLabel value="Birthday:" />
                    <p:outputLabel value="#{studentBean.birthdayDate}" />
                </h:panelGrid><br />

                <p:outputLabel value="Contact information" />
                <p:separator />
                <h:panelGrid columns="2">
                    <p:outputLabel value="Email:" />
                    <p:outputLabel value="#{studentBean.email}" />
                    <p:outputLabel value="Mobile:" />
                    <p:outputLabel value="#{studentBean.mobile}" />
                </h:panelGrid><br />

                <p:outputLabel value="Education" />
                <p:separator />
                <h:panelGrid columns="2">
                    <p:outputLabel value="College or university:" />
                    <p:outputLabel value="#{studentBean.highSchoolName}" />
                    <p:outputLabel value="Department:" />
                    <p:outputLabel value="#{studentBean.department}" />
                    <p:outputLabel value="Year:" />
                    <p:outputLabel value="#{studentBean.highSchoolYear}" />
                </h:panelGrid><br />

            </p:panel>
        </h:form>

    </ui:define>
</ui:composition>